package cn.iocoder.yudao.module.system.controller.admin.warehouse.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "调拨/派发-创建请求")
public class TransferCreateReqVO {
    @NotNull
    @Schema(description = "1-调拨 2-派发 3-还料")
    private Integer transferType;
    @NotNull
    private Long fromWarehouseId;
    @NotNull
    private Long toWarehouseId;      // 派发时是人员仓ID
    @NotNull
    @DecimalMin("0.001")
    @Digits(integer = 7, fraction = 3)
    private BigDecimal transferWeight;
    //原因
    private String transferReason;

    private String remark;

    @Schema(description = "附件URL", example = "http://example.com/file.jpg")
    @NotBlank
    private String attachmentUrl;

    @NotBlank
    @Schema(description = "操作人", example = "张")
    private String creator;
}


